﻿namespace StudentSystem
{
    public class Student
    {
        private int id;
        private string name;
        private string age;

        public Student(int id, string name, string age)
        {
            this.id = id;
            this.name = name;
            this.age = age;
        }

        public Student(string name, string age)
        {
            this.name = name;
            this.age = age;
        }

        public int Id
        {
            get => id;
            set => id = value;
        }

        public string Name
        {
            get => name;
            set => name = value;
        }

        public string Age
        {
            get => age;
            set => age = value;
        }

        public override string ToString()
        {
            return "id"+this.id+"姓名"+this.name+"年龄"+this.age;
        }
    }
}